<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:insert="~{include :: header('讲师详情-' + ${teacher.name})}" />
</head>
<body class="hold-transition">
<div class="container-fluid mt-2 mb-2">
    <form id="form-user-add" class="form-horizontal"  th:object="${teacher}">
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">姓名/id:</label>
            <span class="col-sm-3 col-form-label" th:text="*{name + ' (userId：'+userId+')'}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">手机:</label>
            <span class="col-sm-3 col-form-label" th:text="*{mobile}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">出生日期:</label>
            <span class="col-sm-3 col-form-label" th:text="*{birthday}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">籍贯:</label>
            <span class="col-sm-3 col-form-label" th:text="*{nativePlace}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">性别:</label>
            <span class="col-sm-3 col-form-label" th:text="${@dict.getLabel('qdx_user_sex',teacher.sex)}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">学历:</label>
            <span class="col-sm-3 col-form-label" th:text="*{education}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">专业:</label>
            <span class="col-sm-3 col-form-label" th:text="${subjectName}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">职称:</label>
            <span class="col-sm-3 col-form-label" th:text="${@dict.getLabel('qdx_teacher_title',teacher.starId)}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">课程数:</label>
            <span class="col-sm-3 col-form-label text-red" th:text="${courseCounts}+' 门'"></span>
            <label class="col-sm-2 text-sm-right col-form-label">书籍数:</label>
            <span class="col-sm-3 col-form-label text-red" th:text="${bookCounts}+' 本'"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">标签/研究方向:</label>
            <span class="col-sm-8 col-form-label" th:text="*{tags}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">工作单位:</label>
            <span class="col-sm-8 col-form-label" th:text="*{workUnit}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">部门/院系:</label>
            <span class="col-sm-8 col-form-label" th:text="*{workDept}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">浏览量:</label>
            <span class="col-sm-3 col-form-label text-red" th:text="*{viewCount}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">点赞量:</label>
            <span class="col-sm-3 col-form-label text-red" th:text="*{likeCount}"></span>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">属性:</label>
            <div class="col-sm-8 pt-2">
                <span th:if="*{isElite==1}" class="badge badge-primary">推荐</span>
                <span th:if="*{isElite!=1}" class="badge badge-secondary">推荐</span>
                &nbsp;&nbsp;
                <span th:if="*{isTop==1}" class="badge badge-danger">固顶</span>
                <span th:if="*{isTop!=1}" class="badge badge-secondary">固顶</span>
                &nbsp;&nbsp;
                <span th:if="*{isDisabled==1}" class="badge badge-danger">禁用</span>
                <span th:if="*{isDisabled!=1}" class="badge badge-success">启用</span>
            </div>
        </div>
        <div class="form-group row">
            <label class="col-sm-2 text-sm-right col-form-label">更新时间:</label>
            <span class="col-sm-3 col-form-label" th:text="*{updateTime}"></span>
            <label class="col-sm-2 text-sm-right col-form-label">创建时间:</label>
            <span class="col-sm-3 col-form-label" th:text="*{createTime}"></span>
        </div>
        <div class="form-group row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <strong >简介</strong>
                    </div>
                    <div class="card-body" th:utext="*{intro}"></div>
                </div>
            </div>
        </div>
    </form>
</div>
<th:block th:insert="~{include :: footer}" />
</body>
</html>